package database

// 是否线上版，false为线下
var ONLINE bool = false

// 线下版
var (
	dUsername = "root"      // 用户名
	dPassword = ""          //密码
	dAddress  = "127.0.0.1" //ip地址
	dPort     = "3306"      //端口
	dDatabase = "gto"       //数据库名称
	// 本地连接方式
	offline_connectStr = dUsername + ":" + dPassword + "@tcp(" + dAddress + ":" + dPort + ")/" + dDatabase + "?charset=utf8"
)

// 线上版
var (
	uUsername = "root"      // 用户名
	uPassword = ""          //密码
	uAddress  = "127.0.0.1" //ip地址
	uPort     = "3306"      //端口
	uDatabase = "gto"       //数据库名称
	// 本地连接方式
	online_connectStr = uUsername + ":" + uPassword + "@tcp(" + uAddress + ":" + uPort + ")/" + uDatabase + "?charset=utf8"
)
